<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache" />
<title>我的-<?php echo(Yii::app()->params['app']['name']);?></title>
<script type="text/javascript">document.domain=window.location.host;</script>
<link href="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/css/common.css?v=<?php echo(Yii::app()->params['app']['version'])?>" rel="stylesheet"
    type="text/css" />
<link href="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/css/page.css?v=<?php echo(Yii::app()->params['app']['version'])?>" rel="stylesheet"
    type="text/css" />

<script type="text/javascript" src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/jquery.js?v=<?php echo(Yii::app()->params['app']['version'])?>"></script>
<script type="text/javascript" src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/util.js?v=<?php echo(Yii::app()->params['app']['version'])?>"></script>

</head>
<body>
<?php $is_miniyun = Yii::app()->params['app']['eversion'];?>
<div class="top-handle">
<div class="con" id="js_page_op_menu"><a href="javascript:;"
    class="button btn-icon"
    onclick="parent.window.Main.Core.Upload.Show(1, 0, true); return false;"><i
    class="icon ico-upload"></i>上传文件</a>
<div class="search-box">
<form id="js_search_file_form"><label for="js_search_input">搜索文件</label>

<input type="text" class="text" name="search_value" autocomplete="off"
    value="" id="js_search_input">
<button type="submit"><i>搜索</i></button>
</form>
<script type="text/javascript" src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/search_file.js?v=<?php echo(Yii::app()->params['app']['version'])?>"></script></div>
<!-- <a href="" target="_blank" class="button btn-large btn-red" style="float:right;">扩容空间</a> -->
</div>

</div>
<script type="text/javascript">
    try{
        if(parent){
            parent.window.PageCTL.MarkURL(window.location.href);
        }
    }catch(e){}
</script>
<div class="page-main">
<div class="col-main col-index">
<div class="disk-info" id="js_disk_info_box">
<i class="icon"></i>
<div class="con"><strong>我的<?php echo(Yii::app()->params['app']['name']);?></strong> <em>（已用<?php echo($usedSpace)?>，共<?php echo($space)?>，使用率<?php echo($per)?>%）</em>
</div>

<div class="space-status space-exhaust"
    title="容量：<?php echo($space)?> 已用：<?php echo($usedSpace)?> (<?php echo($per)?>%) 剩余：<?php echo($over)?>"><i
    style="width: <?php echo($per)?>%;" id="js_space_progress_line"></i></div>
</div>
<ul class="page-index-list">
    <li>
    <div class="box-con" onclick="parent.window.PageCTL.GOTO(1, 0);"><i
        class="pgi ico-file"></i>
    <div class="con"><strong>我的文件</strong></div>

    <div class="con"><span><?php echo($userBase->fileCount);?>个文件</span></div>
    </div>
    </li>
    <li>
    <div class="box-con" onclick="parent.window.PageCTL.GOTO(2, 0);"><i
        class="pgi ico-document"></i>

    <div class="con"><strong>我的文档</strong></div>
    <div class="con"><span><?php echo($userBase->officeCount);?>个文档</span></div>
    </div>
    </li>
    <li>

    <div class="box-con" onclick="parent.window.PageCTL.GOTO(3, -1);"><i
        class="pgi ico-photo"></i>
    <div class="con"><strong>我的相册</strong></div>
    <div class="con"><span><?php echo($userBase->imageCount);?> 张照片</span></div>
    </div>

    </li>
    <li>
    <div class="box-con" onclick="parent.window.PageCTL.GOTO(4, 0);"><i
        class="pgi ico-music"></i>
    <div class="con"><strong>我的音乐</strong></div>
    <div class="con"><span><?php echo($userBase->musicCount);?>首歌曲</span></div>
    </div>
    </li>
    <li>
    <div class="box-con" onclick="parent.window.PageCTL.GOTO(9, 0);"><i
        class="pgi ico-video"></i>
    <div class="con"><strong>我的视频</strong></div>
    <div class="con"><span><?php echo($userBase->vedioCount);?>部视频</span></div>
    </div>
    </li>
</ul>

<div class="page-index-footer">
  
 <div class="footer-link">
 <?php 
      if ($is_miniyun == 1){
    echo "<a href='http://bbs.miniyun.cn/forum.php?mod=viewthread&tid=89' target='_blank'>我要反馈</a> · ";
    echo "<a href='http://bbs.miniyun.cn/forum.php?mod=forumdisplay&fid=42' target='_blank'>帮助中心</a> · ";
    echo "<a href='http://bbs.miniyun.cn/forum.php?mod=viewthread&tid=92' target='_blank'>关于我们</a>";
}?>
 </div>
</div>
 
</div>
<div class="col-sub">
<?php if ($is_miniyun == 1){
echo "<div class='sub-tips sub-notice'>";
echo "<h3>";
echo "<span>";
echo "<i class='icon ico-tips'></i>";
echo "<a target='_blank' href='http://bbs.miniyun.cn/forum.php?mod=viewthread&tid=90'>新手入门</a>";
echo "</span>";
echo "<em>";
echo "<i class='icon ico-question'></i><a target='_blank'  href='http://bbs.miniyun.cn/forum.php?mod=viewthread&tid=91'>常见问题</a>";
echo "</em>";
echo "</h3>";
echo "<div class='notice-list'>";
echo "<ul id='js_notice_list_box'>";
}?>
<li><a target="_blank"  href="http://bbs.miniyun.cn/forum.php?mod=viewthread&tid=2"><?php $test = Yii::app()->params['app']['name']; if ($is_miniyun == 1){ echo (Yii::app()->params['app']['name']).'新版上线啦';}?></a></li>
<li><a target="_blank"  href="http://bbs.miniyun.cn/forum.php?mod=viewthread&tid=89"><?php if ($is_miniyun == 1){ echo (Yii::app()->params['app']['name']).'意见反馈';}?></a></li>
<?php if ($is_miniyun == 1){
echo "</ul>";
echo "</div>";
echo "</div>";
}?>
<?php if ($is_miniyun == 1){
echo "<dl class='weibo-box'>";
echo "<dt>关注我们：</dt>";
echo "<dd><a href='http://weibo.com/miniyuncn' class='wb-sina' target='_blank'>新浪微博</a></dd>";
echo "</dl>";
}?>
<script type="text/javascript">
                    $(document).ready(function(){
                        var noticeBox = $("#js_notice_list_box");
                        var lis = noticeBox.find("li");
                        var height = lis.height();
                        var active = 0;
                        var time = 0;
                        var len = lis.length;
                        var speed = 200;
                        var moveTimer;
                        
                        var moveNotice = function(){
                            if(moveTimer){
                                window.clearTimeout(moveTimer);
                                moveTimer = null;
                            }
                            moveTimer = window.setTimeout(function(){
                                if(moveTimer){
                                    window.clearTimeout(moveTimer);
                                    moveTimer = null;
                                }
                                time++;
                                var ind = time;
                                if(ind != active){
                                    active = ind;
                                    if(active >= len){
                                        active = 0;
                                        time = 0;
                                    }
                                    var top = active * height;
                                    top = -top;
                                    noticeBox.stop().animate({top: top + "px"}, speed);
                                }
                                moveNotice();
                            },5000);
                        }
                        
                        if(moveTimer){
                            window.clearTimeout(moveTimer);
                        }
                        moveNotice();
                    });
                </script>

<dl class="login-hint" id="js_login_hint_box"></dl>

</body>

</html>
